﻿    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Web;
    using BLL;
    using Newtonsoft.Json;

    namespace WeChat.Ajax
    {
	/// <summary>
	/// Timestorage 的摘要说明
	/// </summary>
	public class Timestorage : IHttpHandler
	{

	    public void ProcessRequest(HttpContext context)
	    {
		string funcType = context.Request.Form["funcType"];
		string opid = context.Request.Form["opid"];
		string Rtung = "";
		switch (funcType)
		{
		    case "torage":
			Rtung =JsonConvert.SerializeObject(BindIdBLL.Torage(opid));
			break;
		    default:
			break;
		}
		context.Response.Write(Rtung);
	    }

	    public bool IsReusable
	    {
		get
		{
		    return false;
		}
	    }
	}
    }